package com.witmore.neutron.ai.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 智能体部署表
 * </p>
 *
 * @author 豆子高
 * @since 2025-09-17
 */
@Getter
@Setter
@TableName("neutron_agent_deployment")
public class AgentDeploymentDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 智能助手id
     */
    @TableField("agent_id")
    private Integer agentId;

    /**
     * 智能助手编码
     */
    @TableField("agent_code")
    private String agentCode;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 服务商ID
     */
    @TableField("provider_id")
    private Integer providerId;

    /**
     * 智能助手图标
     */
    @TableField("agent_icon")
    private String agentIcon;

    /**
     * 智能助手名称
     */
    @TableField("agent_name")
    private String agentName;

    /**
     * 智能助手名称简写
     */
    @TableField("agent_name_abbr")
    private String agentNameAbbr;

    /**
     * 智能助手描述
     */
    @TableField("agent_desc")
    private String agentDesc;

    /**
     * 智能助手类型id
     */
    @TableField("agent_scene_type_id")
    private Byte agentSceneTypeId;

    /**
     * 部署状态1已部署 2停用
     */
    @TableField("deploy_status")
    private Byte deployStatus;

    /**
     * 总聊天次数
     */
    @TableField("total_chat_count")
    private Integer totalChatCount;

    /**
     * 其他配置json格式
     */
    @TableField("config_json")
    private String configJson;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;
}
